package com.ruoyi.project.business.salarydetail.service;

import com.ruoyi.project.business.salarydetail.entity.SalaryDetail;
import com.ruoyi.project.business.salarydetail.request.AddSalaryDetailRequest;
import com.ruoyi.project.business.salarydetail.request.ListSalaryDetailRequest;
import com.ruoyi.project.business.salarydetail.response.SalaryDetailResponse;

import java.util.List;

/**
 * 薪资明细Service接口
 * 
 * @author ${author}
 * @date 2024-03-20
 */
public interface ISalaryDetailService {
    /**
     * 查询薪资明细
     *
     * @param id 薪资明细ID
     * @return 薪资明细
     */
    public SalaryDetail selectSalaryDetailById(Long id);

    /**
     */
    public List<SalaryDetailResponse> selectSalaryDetailList(ListSalaryDetailRequest request, Long tenantId);


    public int insertSalaryDetail(AddSalaryDetailRequest request, Long operatorId, Long tenantId);

    /**
     * 修改薪资明细
     * 
     * @return 结果
     */
    public int updateSalaryDetail(SalaryDetail entity, Long operatorId, Long tenantId);

    /**
     * 批量删除薪资明细
     * 
     * @return 结果
     */
    public int deleteSalaryDetailByIds(Long[] ids, Long operatorId, Long tenantId);

    /**
     * 删除薪资明细信息
     * 
     * @return 结果
     */
    public int deleteSalaryDetailById(Long id, Long operatorId, Long tenantId);

    void deleteMonthSalaryDetailByMonthSalaryId(Long monthSalaryId, Long operatorId, Long tenantId);
}
